import Vue from 'vue'
import Vuex from 'vuex'
// Vuex持久化插件
import createPersistedState from 'vuex-persistedstate'
// 用户信息
import userInfo from './modules/userInfo'
Vue.use(Vuex)
export default new Vuex.Store({
  modules: {
    userInfo,
  },
  plugins: [
    createPersistedState({
      storage: window.sessionStorage,
    }),
  ],
})
